//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08

`define SW 6'b101011
`define SB 6'b101000
`define LW 6'b100011
`define LB 6'b100000

module word_byte_ctr(opcodes,control);
	input [5:0] opcodes;
	output control;
	reg control;


always @(opcodes) begin
	if(opcodes==`SW || opcodes ==`LW) begin
	  control=0;
	end
	if(opcodes==`SB || opcodes==`LB) begin
	  control=1;
	end
end
endmodule